/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.intec.matsab.listeners;

/**
 *
 * @author Sabrina
 */



import edu.intec.matsab.persistence.PersistenceManager;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class PersistenceAppListener implements ServletContextListener {
    public void contextInitialized(ServletContextEvent arg0) {

    }

    public void contextDestroyed(ServletContextEvent arg0) {
        PersistenceManager.getInstance().closeEntityManagerFactory();
    }
}
